package com.ktwlsoft.archivemanage.payload.mendList;

import com.google.common.base.CaseFormat;
import com.ktwlsoft.archivemanage.domain.dao.entity.BaseEntity;
import com.ktwlsoft.archivemanage.domain.dao.entity.mend.MendList;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import java.math.BigDecimal;
import java.util.Date;

@Getter
@Setter
public class MendListPageRequest {

    @ApiModelProperty("分页")
    private Integer pn;

    @ApiModelProperty("分下大小")
    private Integer pageSize;

    @ApiModelProperty("指导日期起")
    private String instructFrom;

    @ApiModelProperty("指导日期止")
    private String instructTo;

    @ApiModelProperty("状态")
    private String mendState;

    @ApiModelProperty("最小整改后得分")
    private BigDecimal mendMarkMin;

    @ApiModelProperty("最大整改后得分")
    private BigDecimal mendMarkMax;

    @ApiModelProperty("最小得分")
    private BigDecimal markMin;

    @ApiModelProperty("最大得分")
    private BigDecimal markMax;

    @ApiModelProperty("关键字")
    private String keywords;

    @ApiModelProperty("指导人id")
    private String instructorId;

    @ApiModelProperty("当前登录人Id")
    private Long accountId;

    @ApiModelProperty("排序字段")
    private String orderField;

    @ApiModelProperty("排序方式：descend 倒序，ascend 正序")
    private String orderType;

    /**检查类型:default(默认),self_or_repeat(自查复查)**/
    @ApiModelProperty("检查类型:default(默认),self_or_repeat(自查复查)")
    private String inspectType;

    public void setOrderField(String orderField) {
        this.orderField = CaseFormat.LOWER_CAMEL.to(CaseFormat.LOWER_UNDERSCORE, orderField);
    }
}
